package com.forur.stubootstarter4.controller;

import com.forur.stubootstarter4.entity.Torder;
import com.forur.stubootstarter4.service.TorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TorderController {
    @Autowired
    private TorderService torderService;

    @RequestMapping("/add")
    public void add(Torder torder) {
//        Torder torder = new Torder();
//        torder.setOrderName(orderName);
        torderService.add(torder);
    }

}
